import Vue from 'vue'
import App from './App.vue'
import router from './router'
import store from './store'

// 全局配置moment.js为中文环境
import moment from 'moment'
moment.locale('zh-cn');

// 导入vant组件库样式
import 'vant/lib/index.css';

// 导入animate.css动画库
import 'animate.css';

// 导入icon字体图标样式
import './assets/style/icon.css'

// 导入样式重置表
import './assets/style/reset.css'

// 导入vant组件
import {
  Tabbar, TabbarItem, Swipe, SwipeItem, Lazyload, Popup, DatetimePicker, Tab, Tabs, List,
  Toast, NavBar, Button, IndexBar, IndexAnchor, Area, Sidebar, SidebarItem, Cell, CellGroup, Switch,
  Empty, CountDown, Overlay, Grid, GridItem, Image as VanImage, Field, Form, Picker
} from 'vant';


// 注册导入的vant组件
Vue.use(Tabbar).use(TabbarItem).use(Swipe).use(SwipeItem).use(Lazyload).use(Popup)
  .use(DatetimePicker).use(Tab).use(Tabs).use(List).use(Toast).use(NavBar).use(Button)
  .use(IndexBar).use(IndexAnchor).use(Area).use(Sidebar).use(SidebarItem).use(Cell)
  .use(CellGroup).use(Switch).use(Empty).use(CountDown).use(Overlay).use(GridItem)
  .use(Grid).use(VanImage).use(Field).use(Form).use(Picker)

Vue.config.productionTip = false

new Vue({
  router,
  store,
  render: h => h(App)
}).$mount('#app')
